package lol.niconico.libtest.task

import android.util.Log
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import dagger.hilt.android.EntryPointAccessors
import lol.niconico.libtest.di.ExampleContentProviderEntryPoint
import lol.niconico.libtest.di.L

/**
 * Created by ZhangQianqian on 2020/7/7  16:02.
 * email 415692689@qq.com
 */
class ExamViewModel @ViewModelInject constructor(
    private val analytics: L
) : ViewModel() {


    private val _testLiveData = MutableLiveData<String>()
    val testLiveData: LiveData<String>
        get() = _testLiveData

    fun getValue(): String {
        Log.e("ExamViewModel", analytics.toString())
        _testLiveData.postValue(analytics.toString())
        return analytics.analyticsMethods()
    }
}